<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="<c:url value='/js/jquery-2.1.0.js'/>"></script>
</head>
<body>

<c:if test="${ manager == null }">
<form action="<c:url value="/ManagerLoginServlet" />" method="POST">
	帳號<input type="text" name="mgr_id" value="${param.id }"/> ${AccountLock }<br>
	密碼<input type="text" name="mgr_pwd"/><br>
	<input type="submit" value="登入">
</form>
	<input type="button" value="查看新聞" onclick="javascript:location.href='<c:url value="/ShowNewsServlet.mgr" />'"/>
</c:if>

<c:if test="${ manager != null }">
	Hello Manager!!
	<input type="button" value="編輯新聞" onclick="javascript:location.href='<c:url value="/mgr-pages/create_news.jsp" />'"/>
	<input type="button" value="查看新聞" onclick="javascript:location.href='<c:url value="/ShowNewsServlet.mgr" />'"/>
</c:if>

</body>
</html>